package com.qdu.controller;


import com.qdu.commons.Result;
import com.qdu.service.impl.PhotoServiceImpl;
import com.qdu.service.impl.PoseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;
import java.io.File;
import java.io.IOException;
import java.util.UUID;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ellery2018
 * @since 2022-03-09
 */
@RestController
@RequestMapping("/pose")
public class PoseController {


    @Autowired
    PoseServiceImpl poseService;

    @PostMapping("/randompose")
    public Result randompose()  {
        return Result.SUCCESS(poseService.makepose()) ;

    }

}
